﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace MonoRailRSS.Models
{
    public interface IRepository<T>
    {
        void Add(T item);

        void Delete(T item);

        bool Exists(Predicate<T> predicate);

        T Find(Predicate<T> predicate);

        IEnumerable<T> GetAll();
    }
}
